> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DSTORAGE_PRIORITY

> DSTORAGE_PRIORITY

# DSTORAGE\_PRIORITY

Niveles de prioridad de una cola de DirectStorage.

## Sintaxis

```cpp theme={null}
enum DSTORAGE_PRIORITY  : INT8  
{  
    DSTORAGE_PRIORITY_LOW = -1,  
    DSTORAGE_PRIORITY_NORMAL = 0,  
    DSTORAGE_PRIORITY_HIGH = 1,  
    DSTORAGE_PRIORITY_REALTIME = 2,  
    DSTORAGE_PRIORITY_FIRST = DSTORAGE_PRIORITY_LOW,  
    DSTORAGE_PRIORITY_LAST = DSTORAGE_PRIORITY_REALTIME,  
    DSTORAGE_PRIORITY_COUNT = 4  
}  
```

## Constantes

| Constante                    | Descripción                                                                                                   |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------- |
| DSTORAGE\_PRIORITY\_LOW      | La prioridad más baja para una operación de DirectStorage.                                                    |
| DSTORAGE\_PRIORITY\_NORMAL   | La mayoría de las solicitudes deben tener esta prioridad.                                                     |
| DSTORAGE\_PRIORITY\_HIGH     | La prioridad más alta para una operación de DirectStorage.                                                    |
| DSTORAGE\_PRIORITY\_REALTIME | La misma prioridad que `DSTORAGE_PRIORITY_HIGH`, pero minimiza la latencia a costa de una mayor carga de CPU. |
| DSTORAGE\_PRIORITY\_FIRST    | El nivel de prioridad más bajo; igual a `DSTORAGE_PRIORITY_LOW`.                                              |
| DSTORAGE\_PRIORITY\_LAST     | El nivel de prioridad más alto; igual a `DSTORAGE_PRIORITY_REALTIME`.                                         |
| DSTORAGE\_PRIORITY\_COUNT    | El número de niveles de prioridad.                                                                            |

## Comentarios

Esta enumeración se usa en la estructura [DSTORAGE\_QUEUE\_DESC](/reference/system/dstorage/structs/dstorage_queue_desc).

La prioridad se aplica mediante un algoritmo round-robin ponderado que se basa en el tamaño de las solicitudes. La diferencia entre `DSTORAGE_PRIORITY_LOW` y `DSTORAGE_PRIORITY_NORMAL` es de aproximadamente un orden de magnitud, al igual que la diferencia entre `DSTORAGE_PRIORITY_NORMAL` y `DSTORAGE_PRIORITY_HIGH`.

Todas las solicitudes de Win32 tienen prioridad normal (`DSTORAGE_PRIORITY_NORMAL`).

Para iterar por los niveles de prioridad, use `DSTORAGE_PRIORITY_FIRST`, `DSTORAGE_PRIORITY_LAST` y `DSTORAGE_PRIORITY_COUNT`.

Para obtener más información, consulte la sección "Priority" de [Información general de DirectStorage](/build/console-features/storage/directstorage/directstorage-overview).

## Requisitos

**Encabezado:** dstorage\_xs.h

**Plataformas compatibles:** consolas XBOX Series

## Consulte también

[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [DSTORAGE_QUEUE_DESC](/es/reference/system/dstorage/structs/dstorage_queue_desc.md)
- [DSTORAGE_QUEUE_DESC1](/es/reference/system/dstorage/structs/dstorage_queue_desc1.md)
- [DStorage](/es/reference/system/dstorage/dstorage_members.md)
- [DSTORAGE_PRIORITY_STATS](/es/reference/system/dstorage/structs/dstorage_priority_stats.md)
- [DSTORAGE_STATS](/es/reference/system/dstorage/structs/dstorage_stats.md)
